package org.anlu.tianjin.cart;

import org.anlu.tianjin.cart.bean.Cart;
import org.anlu.tianjin.cart.bean.CartItem;
import org.anlu.tianjin.cart.bean.SkuResponse;

import java.util.List;

/**
 * 购物车服务
 * @author Administrator
 */
public interface CartService {
    SkuResponse addToCart(Long skuId, Integer num, String token);

    boolean updateCount(Long skuId, Integer num, String cartKey);

    boolean deleteCart(Long skuId, String cartKey);

    boolean checkCart(Long skuId, Integer flag, String cartKey);

    Cart cartItemsList(String cartKey);

    Cart cartItemsForLoginUser(String token);

    List<CartItem> cartItemsForJieSuan(String token);
}
